package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 订单支付记录(OrderPayLog)表实体类
 *
 * @author yxy
 * @since 2024-11-20 14:32:16
 */
@Data
@ApiModel("订单支付记录")
@TableName(value = "tb_order_pay_log")
public class OrderPayLog extends Model<OrderPayLog> implements Serializable {
    private static final long serialVersionUID = -16220987494676150L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("商家id")
    private Long merchantId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("类型0设备 1服务")
    private Integer type;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("金额")
    private BigDecimal price;

    @ApiModelProperty("支付类型0支付 1退款")
    private Integer payType;
}
